<include file="Inc/in_head" />

<nav class="navbar navbar-default">
	<div class="container">
	    <div class="navbar-header"> 
	      <a class="navbar-brand" href="#">Jaguar后台管理系统</a>
	    </div>
		
	    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
	      <ul class="nav navbar-nav">
	        <li class="active"><a href="/Admin/User/index">用户管理<span class="sr-only">(current)</span></a></li>
	        <li><a href="/Admin/Active/index">活动管理</a></li>
	      </ul> 
	      <ul class="nav navbar-nav navbar-right">
	        <li><a href="#">退出</a></li>
	      </ul>
	    </div>
	</div>
</nav>

<div class="container"> 
<div class="panel panel-default">
  <div class="panel-body">
   <a class="btn btn-primary pull-right btn-sm" href="/index.php/Admin/User/export" target="_blank"><span class="glyphicon glyphicon-save"></span> 导出用户数据</a>&nbsp;
   <a class="btn btn-success pull-right btn-sm" href="/index.php/Admin/User/template" target="_blank"><span class="glyphicon glyphicon-floppy-save"></span> 下载模板</a>&nbsp;
   <form class="form-inline pull-right" action="/Admin/User/import" method="POST" enctype="multipart/form-data">
   	<div class="form-group">
    <label for="file">选择文件</label>
    <input type="file" name="file" id="file" class="form-control" style=" height: 30px; padding: 4px 5px;" />
  </div>
   	<button class="btn btn-default btn-sm"><span class="glyphicon glyphicon-floppy-open"></span> 导入</button>&nbsp;
   </form>
   用户管理
  </div>
</div>
<div class="table-responsive">
      <table class="table table-bordered" style="margin-bottom: 0px;">
        <thead>
          <tr>
            <th>#</th>
            <th>姓名</th>
            <th>称谓</th>
            <th>电话</th>
            <th>城市</th>
            <th>关注车型</th>
            <th>来源</th>
            <th>&nbsp;</th>
          </tr>
        </thead>
        <tbody>
<foreach name="list" item="vo" >  
          <tr>
            <th scope="row">{$vo.id}</th> 
            <td>{$vo.username}</td> 
            <td>{$vo.sex}</td> 
            <td>{$vo.phone}</td> 
            <td>{$vo.city}</td> 
            <td>{$vo.cartype}</td> 
            <td>{$vo.comefrom}</td> 
            <td>&nbsp;</td> 
          </tr>
</foreach>
        </tbody>
      </table>
    </div>
	{$page}
</div>
<include file="Inc/in_foot" />